package com.zhx.business.api;

import com.googlecode.jsonrpc4j.JsonRpcService;
import com.zhx.business.entity.Product;
import com.zhx.business.repository.dto.ProductCondition;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;

/**
 * 产品相关的rpc service  注意: 路径不能/开始!!!不能斜杠开始
 */
@JsonRpcService("v1/product")
public interface ProductRpc {

    ResponseEntity list(ProductCondition condition, Pageable pageable);

    Product findOne(String uid);
}
